package shop.service;

import java.sql.SQLException;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import shop.dao.MemberDao;
import shop.dao.ZipcodeDao;
import shop.dto.MemberVO;
import shop.dto.ZipcodeVO;
import shop.except.ZipcodeNotFoundException;

@Service
public class MemberInfoServiceImpl implements MemberInfoService {
	@Resource(name="zipcodeDaoImpl")
	private ZipcodeDao zipcodeDao;
	@Resource(name="memberDaoImpl")
	private MemberDao memberDao;
	
	@Override
	public List<ZipcodeVO> getZipcode(ZipcodeVO zvo) throws SQLException, ZipcodeNotFoundException {
		return this.zipcodeDao.getZipcode(zvo);
	}

	@Override
	public void joinMember(MemberVO mvo) throws SQLException {
		this.memberDao.joinMember(mvo);
	}
}
